package com.haiqu.haiqu_helper.controller;

import com.haiqu.haiqu_helper.model.JsonResult;
import com.haiqu.haiqu_helper.service.AppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * className: AppController
 * description: TODO
 * author: mj
 * date: 2019/9/196:40 PM
 **/
@RestController
@RequestMapping("/app")
public class AppController {
	@Autowired
	AppService appService;
//	@ApiOperation(value = "通过AppNum获取该APP每日获得上限", httpMethod = "POST", response = GetMoneyLimitOut.class)
	@GetMapping("/list")
	public JsonResult appList(HttpServletRequest request, HttpServletResponse response) {
		JsonResult jsonResult = new JsonResult();
		jsonResult = appService.getAppList();
		return jsonResult;
	}
}
